﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdministratorMasterForm.aspx.cs"
    Inherits="Wei8808Cms.WebSite.admin.Administrator.AdministratorMasterForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员管理</title>
    <link href="../Images/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/pagination.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.pagination.js" type="text/javascript"></script>
    <script src="../js/function.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            //分页参数设置
            $("#Pagination").pagination(<%=Pcount %>, {
            callback: pageselectCallback,
            prev_text: "« 上一页",
            next_text: "下一页 »",
            items_per_page:<%=Pagesize %>,
		    num_display_entries:3,
		    current_page:<%=PageIndex %>,
		    num_edge_entries:2,
		   link_to:"?page=__id__"
           });
        });
        
        function pageselectCallback(page_id, jq) {
                //alert(page_id); 回调函数，进一步使用请参阅说明文档
        }
        
        $(function() {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function() {
			        $(this).addClass("tr_hover_col");
			    },
			    function() {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="AddAdministratorInfoForm.aspx">增加管理员</a></span><b>您当前的位置：系统管理
            &gt; 管理员列表</b></div>
    <div style="padding-bottom: 10px;">
    </div>
    <div>
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                    <tr>
                        <th width="7%">
                            选择
                        </th>
                        <th width="17%">
                            管理帐号
                        </th>
                        <th width="16%">
                            真实姓名
                        </th>
                        <th width="25%">
                            电子邮件
                        </th>
                        <th width="11%">
                            超级管理员
                        </th>
                        <th width="11%">
                            状态
                        </th>
                        <th width="13%">
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" />
                        <asp:Label ID="lb_id" runat="server" Text='<%#Eval("Id")%>' Visible="False"></asp:Label>
                    </td>
                    <td>
                        <%#Eval("UserName")%>
                    </td>
                    <td>
                        <%#Eval("ReadName")%>
                    </td>
                    <td>
                        <%#Eval("UserEmail")%>
                    </td>
                    <td align="center">
                        <%#Eval("UserType").ToString().Trim() == "1" ? "<img title=\"是\" src=\"../images/correct.gif\" />" : "<img title=\"否\" src=\"../images/disable.gif\" />"%>
                    </td>
                    <td align="center">
                        <%#Eval("IsLock").ToString().Trim() == "0" ? "<img title=\"正常\" src=\"../images/correct.gif\" />" : "<img title=\"禁用\" src=\"../images/disable.gif\" />"%>
                    </td>
                    <td align="center">
                        <span><a href="EditAdministratorInfoForm.aspx?id=<%#Eval("Id") %>">编辑</a></span>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div class="spClear">
        </div>
        <div style="line-height: 30px; height: 30px;">
            <div id="Pagination" class="right flickr">
            </div>
            <div class="left">
                <span class="btn_all" onclick="checkAll(this);">全选</span> <span class="btn_bg">
                    <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm( '确定要删除这些记录吗？ ');"
                        OnClick="lbtnDel_Click">批量删除</asp:LinkButton>
                </span>&nbsp;</div>
        </div>
    </div>
    </form>
</body>
</html>
